#include "WrongFormatException.h"

int WrongFormatException::ex_count = 0;

WrongFormatException::WrongFormatException(string s) : message(s){
    ex_count++;
}

WrongFormatException::WrongFormatException(const WrongFormatException& ex) 
        : message(ex.message){
    
}

void WrongFormatException::DisplayMessage() const {
    cout<<message<<endl;
}

int WrongFormatException::NumException(){
    return ex_count;
}
